extends "../bailong-3/bailong-3.gd"


var baseId = ""
func _extInit():
	._extInit()
	if isInManual():
		addSkill(sk3t1[1], sk3t1[0])
		addSkill(sk3t2[1], sk3t2[0])
	elif sk3 != 0:
		doChoiceSkill3()
	lv = 4             #等级的设置

var sk3t1 = ["白龙云影·1", "若装备鱼雷机，则使其学会天雷罪灭，但伤害减半(鱼雷机发动天雷罪灭按其雷击计算伤害)"]
var sk3t2 = ["白龙云影·2", "每40秒对全体敌人发起1次天雷罪灭"]

func doChoiceSkill3():
	if sk3 == 1:
		addSkill("若装备鱼雷机，则使其学会天雷罪灭，但伤害减半", sk3t1[0])
	if sk3 == 2:
		addSkill("每{cd}秒对全体敌人发起3次天雷罪灭", sk3t2[0], "bailong4", 40)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "bailong4":
		for i in getAllChas(1):
			tianleizm(i)

func castPlane():
	var summ = .castPlane()
	if summ != null and not summ.isDeath and summ.type == sys.CharaClass.TBF:
		summ.skillSlot = skillPool.Skill_062.new()
		summ.skillSlot.setCha(summ)